/**
 * IntCPU describes a microprocessor for processing integers.
 *  
 * @author         Konrad Paumann
 * @author         Maximilian Csuk
 * @author         Bernhard Denner
 */
package processors;

import datastructures.*;

public class IntCPU implements CPU {
	
	private SingleCollection intCollection = new SingleCollection();
	
	/**
	 * checks if a command is supported by the CPU
	 * returns 	true if a command is supported by the CPU
	 * 			false if a command is not supported by the CPU
	 */
	public boolean existsCommand(String command) {
		return intCollection.exists(command);
	}

	/**
	 * adds an integer-command to the IntCPU
	 */
	public void insertIntCommand(String command){
		intCollection.insert(command);
	}
			
	/**
	 * returns the count of supported integer-commands of the IntCPU
	 */
	public int getIntCommandCount(){
		return intCollection.getSize();
	}
	

}
